package commands;

import game.logic.Table.TableSide;

/**
 * UserCommand
 * 
 * a command representing a user entered command such as a rule (solo cup / rerack)
 * @author jeff
 *
 */
public class UserCommand extends Command {
	
	private TableSide side;
	
	/**
	 * Constructor
	 * @param side
	 */
	public UserCommand(TableSide side) {
		super();
		this.side = side;
	}
	
	/**
	 * return "USER" for user command
	 */
	@Override
	public String getType() {
		return "USER";
	}

	/**
	 * returns the side of the command
	 */
	@Override
	public TableSide getSide() {
		return side;
	}

}
